using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BarrierControl : MonoBehaviour
{
    
    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        if(GMGlobal.Instance.birdStatus!=0)
        {
            float v=GMGlobal.Instance.velocity;
            this.transform.Translate(Vector2.left/50*v);
        }
    }
}
